rem @echo off
rem Set paths to NSIS and VS for 32 bit
if "%ROLLBACK_BUILD_SETUP_DONE%" == "1" goto end:
rem Set paths to NSIS and VS for 64 bit
set NSIS_PATH=%ProgramFiles(x86)%\NSIS
set VS_PATH=%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC

if exist "%NSIS_PATH%" PATH=%PATH%;%NSIS_PATH%

set CURRENT_DIR=%CD%
cd /d %VS_PATH%	
call vcvarsall.bat
@echo on
cd /d %CURRENT_DIR%

set ROLLBACK_BUILD_SETUP_DONE=1
:end

